package com.aaa.hospital.service.impl;

import com.aaa.hospital.pojo.domain.AliPayBean;
import com.aaa.hospital.service.PayService;
import com.aaa.hospital.util.Alipay;
import com.alipay.api.AlipayApiException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：zzg
 * @description：
 * @date ：2022/2/21 16:05
 */
@Service
public class PayServiceImpl implements PayService {
    @Autowired
    private Alipay alipay;

    @Override
    public String aliPay(AliPayBean aliPayBean) throws AlipayApiException {
        return alipay.pay(aliPayBean);
    }
}
